/** When your routing table is too long, you can split it into small modules **/

import Layout from '@/layout'

const messagesRouter = {
  path: '/messages',
  component: Layout,
  redirect: '/messages/index',
  name: 'messages',
  meta: {
    title: '业主反馈管理',
    icon: 'table'
  },
  children: [
    {
      path: '/messages/index',
      component: () => import('@/pages/messages/index'),
      name: 'messagesTable',
      meta: { title: '业主反馈记录', icon: 'table' }
    },
    {
      path: '/messages/reply',
      component: () => import('@/pages/messages/reply.vue'),
      name: 'messagesReply',
      hidden: true,
      meta: { title: '回复', icon: 'table' }
    },
    {
      path: '/messages/addMessage',
      component: () => import('@/pages/messages/add.vue'),
      name: 'messagesAdd',
      meta: { title: '新增', icon: 'table' }
    }
  ]
}
export default messagesRouter
